package com.bestv.search.common.service.impl;

import com.bestv.search.common.dao.DynamicMsgDao;
import com.bestv.search.common.dataSource.DataSourceKey;
import com.bestv.search.common.model.DynamicMsg;
import com.bestv.search.common.service.DynamicMsgManager;

public class DynamicMsgManagerImpl implements DynamicMsgManager {

    private DynamicMsgDao dynamicMsgDao;

    public DynamicMsgDao getDynamicMsgDao() {
        return dynamicMsgDao;
    }

    public void setDynamicMsgDao(DynamicMsgDao dynamicMsgDao) {
        this.dynamicMsgDao = dynamicMsgDao;
    }

    public DynamicMsg saveDynamicMsg(DataSourceKey key, DynamicMsg dm) {
        return dynamicMsgDao.save(dm);
    }

    public DynamicMsg saveOrUpdate(DataSourceKey key, DynamicMsg dm) {
        return dynamicMsgDao.saveOrUpdate(dm);
    }
}
